package algorithm.calculator;

public class MathTest {
    public static void main(String[] args) {
        String expression1 = "(0*1--3)-5/-4-(3*(-2.13))";
        double result1 = Calculator.conversion(expression1);
        System.out.println(expression1 + " = " + result1);

        String expression2 = "-((3*-5)+3*(2-4)/2)";
        double result2 = Calculator.conversion(expression2);
        System.out.println(expression2 + " = " + result2);
    }
}

/*
(0*1--3)-5/-4-(3*(-2.13))=10.64
0/3.5=0.0
-7+3*2=-1.0
5/4--3*2.13 =7.64
(3-2)*(-9)/3+5e-2=-2.95
(0*1--3)-(3/2+-6)=7.5
(0*1-3)-(3/2+-6)=1.5
-2+-1*(-3E-2)-(-1)=-0.97
-((3*-5)+3*(2-4)/2)= 18.0
1/7=0.1428571428571429
-2/0=NaN
+3-1=NaN
--5/3=NaN
3--(3)=NaN
*/

